﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ExpertSMS.Models
{
    public class MakeFoodProduct
    {
        public int MakeFoodProductID { get; set; }
        public int MakeFoodID { get; set; }
        public int ProductID { get; set; }
        public int UnitID { get; set; }
        public decimal Cost { get; set; }
        public decimal Quantity { get; set; }


        public virtual decimal UnitQuantity
        {
            get
            {
                return Quantity / this.Unit.ConvertingFactorToMainUnit;
            }
        }
        public virtual Unit Unit { get; set; }
        public virtual MakeFood MakeFood { get; set; }
        public virtual Product Product { get; set; }
    }
}